// DOM 2 Events
var dispatchMouseEvent = function(target, var_args) {
	var t = target;
	if(typeof(target) == 'string'){
		t = document.getElementById(target);
	}
	var e = document.createEvent("MouseEvents");
	// If you need clientX, clientY, etc., you can call
	// initMouseEvent instead of initEvent
	e.initEvent.apply(e, Array.prototype.slice.call(arguments, 1));
	t.dispatchEvent(e);
};

function loop(){
	dispatchMouseEvent(document.getElementById('rank_plus').lastChild, 'click', true, true);
	document.getElementById('word').value = 'Good!';
	dispatchMouseEvent('submit','click',true,true);
}
setTimeout(loop,5000);